import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';

const routes: Routes = [
  {path: '', pathMatch: 'full', redirectTo: '/database'},
  {path: 'database', loadChildren: () => import('./pages/database/database.module').then(m => m.DatabaseModule)},
  {path: 'environment', loadChildren: () => import('./pages/environment/environment.module').then(m => m.EnvironmentModule)},
  {
    path: 'synchronization',
    loadChildren: () => import('./pages/synchronization/synchronization.module').then(m => m.SynchronizationModule)
  },
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule {
}
